Both reloadExtensions() and enableExtensions() are already expected
to catch extension errors. If they don't, this is the bug that
should be fixed instead of catching unhandled exceptions in the
caller.
This reverts commit
ff425d1db7082e2755d2a405af53861552acf2a1.
https://bugzilla.gnome.org/show_bug.cgi?id=781728
// temporarily disable them all
enabledExtensions = [];
for (let uuid in ExtensionUtils.extensions)
- try {
- reloadExtension(ExtensionUtils.extensions[uuid]);
- } catch(e) {
- logExtensionError(uuid, e);
- }
+ reloadExtension(ExtensionUtils.extensions[uuid]);
enabledExtensions = getEnabledExtensions();
if (Main.sessionMode.allowExtensions) {
enabledExtensions.forEach(function(uuid) {
- try {
- enableExtension(uuid);
- } catch(e) {
- logExtensionError(uuid, e);
- }
+ enableExtension(uuid);
});
}
}